package com.primestone.cim.async;

import java.util.List;

import javax.ejb.Local;

import com.primestone.cim.entities.tmp.ResMeterReadings;

/**
 * 
 * @author cesar.mateus
 *
 */
@Local
public interface TmpTableEJBLocal {
	
	/**
	 * 
	 * @param resMeterReadings
	 */
	void saveResMeterReadings(List<ResMeterReadings> resMeterReadings);
	
	/**
	 * 
	 * @param resMeterReading
	 * @return 
	 */
	Long saveResMeterReadings(ResMeterReadings resMeterReading);
	
	/**
	 * 
	 * @param ticket
	 * @return
	 */
	List<ResMeterReadings> findResMeterReadingsByTicket(String ticket);
	
	/**
	 * 
	 * @param ticket
	 * @return
	 */
	ResMeterReadings findFirstResMeterReadingsByTicket(String ticket);
	
	/**
	 * 
	 * @param resMeterReadings
	 */
	void deleteResMeterReadings(ResMeterReadings resMeterReadings);

	/**
	 * @param ticket
	 * @param id
	 * @return
	 */
	ResMeterReadings findNextResMeterReadingsByTicket(String ticket, Long id);

	/**
	 * @param id
	 */
	void deleteResMeterReadingsById(Long id);

}
